package net.yambal.RTM.Event
{
	import flash.events.Event;
	
	import net.yambal.RTM.Items.RTMTaskSeries;
	import net.yambal.RTM.Items.RTMTransaction;

	public class TasksEvent extends Event
	{
		public static const GET_LIST:String = "get_list";
		public static const ADD_TASK:String = "add_task";
		public static const SET_NAME:String = "set_name";
		public static const ADD_TAGS:String = "add_tags";
		public static const SET_TAGS:String = "set_tags";
		public static const REMOVE_TAGS:String = "remove_tags";
		public static const COMPLETE:String = "complete";
		public static const UNCOMPLETE:String = "uncomplete";
		public static const SET_PRIORITY:String = "set_priority";
		public static const MOVE_PRIORITY:String = "move_priority";
		public static const MOVE_TO:String = "move_to";
		public static const POSTPONE:String = "postpone";
		public static const DELETE_TAG:String = "delete_tag";
		public static const SET_ESTIMATE:String = "set_estimate";
		public static const SET_RECURRENCE:String = "set_recurrence";
		public static const SET_URL:String = "set_url";
		public static const SET_LOCATION:String = "set_location";
		
		
		public var task_series_array:Array;
		public var task_series:RTMTaskSeries;
		public var transaction:RTMTransaction;
		
		public function TasksEvent(type:String, task_series_array:Array = null, task_series:RTMTaskSeries=null, transaction:RTMTransaction = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.task_series_array= task_series_array;
			this.task_series = task_series;
			this.transaction = transaction;
			
		}
		
	}
}